const mongoose = require('mongoose')
// 创建存储的 Schema 和 Model
const AdminlistSchema = new mongoose.Schema({
  adminListData: [
    {
      iid: { type:Number, unique: true, sparse: true, },
      title: { type: String, required: true,sparse: true, unique: true },
      paper: { type: String, required: true,sparse: true, unique: true },
      image: { type: String, sparse: true, unique: true },
      path: { type: String, sparse: true,required: true, unique: true },
      name: { type: String, sparse: true,unique: true },
      content: { type: String, sparse: true,unique: true },
      time: {type: Number,sparse: true,unique: true }
    },
  ]

})

const AdminlistDataModel = mongoose.model('AdminlistDataModel', AdminlistSchema)

module.exports = AdminlistDataModel
